<?phpnamespace BoxEdu\Hooks;class ApplyExaminationHooks extends \HooksController{    //报名订单    function order_after_make_examination(&$param)    {        $order_sn=$param['order_sn'];        $examination_id=$param['examination_id'];        $r= BoxModel("edu_apply_examination")->where(array('id' => $examination_id))->save(array('order_sn'=>$order_sn));        return $r;    }    //支付成功    function order_paySuc_examination(&$param)    {        $order_sn = $param['order_sn'];        BoxModel("edu_apply_examination")->where(array('order_sn' => $order_sn))->save(array('status'=>2));    }    //加载    function order_load_examination(&$param)    {        $order_sn = $param['order_sn'];        $data = BoxModel("edu_apply_examination")->where(array('order_sn' => $order_sn))->find();        $param = array_merge($param, (array)$data);    }}